package util;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

import org.apache.log4j.Logger;

public class PropertyUtil {
	private static final Logger logger = Logger.getLogger(PropertyUtil.class);
	private static String b2bVersion;
	
	static {
		Properties prop = new Properties();
		InputStream is = PropertyUtil.class.getClassLoader().getResourceAsStream("b2b.properties");
		try {
			prop.load(is);
			b2bVersion = prop.getProperty("b2bVersion");
			is.close();
		} catch (IOException e) {
			logger.error("PropertyUtil init error:", e);
		}
	}

	public static String getB2bVersion() {
		return b2bVersion;
	}

	
}
